<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }

        div{
            width: 200px;
            height: 200px;
            background-color: skyblue;
            position: absolute;
            left: 0;
            top: 0;
        }


        p{
            width: 200px;
            height: 200px;
            background-color: orange;
            position: absolute;
            left: 0;
            top: 350px;
        }
    </style>
</head>
<body>
    <div></div>


    <p></p>
    <script src="./utils.js"></script>
    <script>
        var divEle = document.querySelector('div');
        var pEle = document.querySelector('p');

        function fn1(){
            console.log('带点水果');
        }

        function fn2(){
            console.log('带盒烟');
        }
        divEle.onclick = function(){
            move3(divEle,{width:555,height:300,opacity:0.3},20,fn1)
        }

        pEle.onmouseover = function(){
            move3(pEle,{left:555,top:300,opacity:0.3},20,fn2)
        }


    </script>

</body>
</html>